package com.juli.v2xdemo.listener;

import com.juli.v2xdemo.entity.Bullet;
import com.juli.v2xdemo.util.GPSutils;

public class AddBulletListener extends AddEntityListener<Bullet>{

	public AddBulletListener(Bullet t) {
		super(t);
	}

	@Override
	protected void onLayoutFinish() {
		Bullet bullet = t;
		if (GPSutils. type==1) {
			bullet.setTranslationX(420);
		} else {
			bullet.setTranslationX(840);
		}
		//初始化子弹的位置

 		bullet.setTranslationY(-200);
		bullet.shot(1500,8000);



    }

}
